package com.gopay.scheduler.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.domain.acps.AcctProd;
import com.gopay.common.domain.acps.AcpsAcctMast;
import com.gopay.scheduler.dao.CloudAcctQueryDAO;

/** 
 * @ClassName: CloudAcctQueryDAOImpl 
 * @Description: 账户查询实DAO实现类
 * @author liuxuyang
 * @date 2018年3月19日 下午5:09:43  
 */

@Repository("cloudReconciliationAcctQueryDao")
public class CloudAcctQueryDAOImpl extends BaseDAOImpl<AcpsAcctMast, String> implements CloudAcctQueryDAO {

	@Override
	public List<AcpsAcctMast> getCloudAccts() {
		String hql = "FROM AcpsAcctMast am WHERE am.delFlg = 0 AND am.prodCode=:prodCode";
        Map<String, Object> param = new HashMap<String, Object>();
        
        param.put("prodCode",AcctProd.toEnum("CLOUD"));
        
        return findByHql(hql, param);
	}

}
